#ifndef GRAPHLETSUTIL_H
#define GRAPHLETSUTIL_H
#include <QString>
#include "graphlets.h"

class GraphletsUtil
{
public:
    GraphletsUtil();
    static Graphlets loadFromXml(QString xmlCode);
    static QString encodeSvgCode(QString svgCodeRaw);//加密svg代码
    static QString decodeSvgCode(QString svgCodeEncrypted);//解密svg代码
    static char* crypt(const char* str,int cryptType);
    static QString genThumbnail(QString svgCode,QString thumFileUrl);
private:
    static const int shiftSeeds = 3;

};

#endif // GRAPHLETSUTIL_H
